﻿using System;
using System.Collections.Generic;

namespace Flagwind.Communication
{
    public class ChannelPipelineContext : Composition.ExecutionPipelineContext, IChannelContext
    {
        #region 成员字段

        private IChannel _channel;

        #endregion

        #region 构造方法

        public ChannelPipelineContext(Composition.IExecutionContext context, Composition.ExecutionPipeline pipeline, object data, IChannel channel) : base(context, pipeline, data)
        {
            _channel = channel;
        }

        #endregion

        #region 公共属性

        public IChannel Channel
        {
            get
            {
                return _channel;
            }
        }

        #endregion
    }
}